<tagLib name="html"/>
<include file="./Index/Tpl/Home/default/public/header.htm" />
<link href="__PUBLIC__/css/inn-adm-base.css" type="text/css" rel="stylesheet" />
<style type="text/css">
.sjht_xx{
	padding-top:0px;
	margin:0;
	font-size:12px;
	color:#000;
	line-height:15px;
}
.sjht_fd table{
	border-top:2px solid #35AFC1;
	border-left:1px solid #e0e0e0;
	text-align:center;
}
.sjht_fd table td{
	border-right:1px solid #e0e0e0;
	border-bottom:1px solid #e0e0e0;
	padding:5px;
}
.sjht_fd table .title{
	height:33px;
	background:url(__PUBLIC__/images/tr_bg.png);
}
.sjht_fd table .title td{
	padding:0;
}
.sjht_fd a{
	color:#0069CA;
}
</style>
<div class="content">
  <include file="public:innleft" /> 
  <!--商家后台右边 start-->
  <div class="sjht_right">
    <div class="sjht_xx"> 
      <!--具体信息左边 start-->
      <div class="sjht_fd">
        <script type='text/javascript'>
            function do_search() {
                uri = '__KZURL__/book/index';
                
                contact = $("#searchForm input[name='contact']").val();
                if(contact !='') uri += '-contact-' + contact;
                
                mobile = $("#searchForm input[name='mobile']").val();
                if(mobile !='') uri += '-mobile-' + mobile;
                
                email = $("#searchForm input[name='email']").val();
                if(email !='') uri += '-email-' + email;
                
                orderNum = $("#searchForm input[name='orderNum']").val();
                if(orderNum !='') uri += '-orderNum-' + orderNum;
                
                selectType = $("#searchForm input[name='selectType']:checked").val();
                if(selectType =='uncheckin') uri += '-selectType-' + selectType;
                
                window.location.href = uri;
            }
        </script>
        <div id='searchForm'>
        订单查询<br>
        联系人姓名：<input type='text' name='contact' value="<{$_REQUEST['contact']}>" />
        手机：<input type='text' name='mobile' value="<{$_REQUEST['mobile']}>" />
        邮件：<input type='text' name='email' value="<{$_REQUEST['email']}>" />
        <br>订单号：<input type='text' name='orderNum' value="<{$_REQUEST['orderNum']}>" />
        筛选范围：<input type='radio' name='selectType' value='all' <neq name="_REQUEST['selectType']" value='uncheckin'>checked</neq>>所有订单
        <input type='radio' name='selectType' value='uncheckin' <eq name="_REQUEST['selectType']" value='uncheckin'>checked</eq>>未入住订单
        <input type='button' value='查询' onclick='do_search()' />
        </div>
        <div>
            <span>订单名称颜色区分</span>
            <span style='color:orange'>[黄:等待处理]</span>
            <span style='color:green'>[绿:已接受]</span>
            <span style='color:red'>[红:已拒绝]</span>
            <span style='color:black'>[黑:即时预定型订单，不需要主动处理]</span>
        </div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr class="title">
                <td width="">订单号</td>
                <td width="">名称</td>
                <td width="">订金</td>
                <td width="">订金支付方式</td>
                <td width="">余款</td>
                <td width="">余款支付方式</td>
                <td width="">床位/房间</td>
                <td width="">人数</td>
                <td width=""><eq name="_REQUEST['selectType']" value='uncheckin'>入住<else/>下单</eq>时间</td>
            </tr>
            <assign name="dateGroup" value="" />
            <volist name='orderList' id='vo'>
                <php>$orderDate = date('Y年m月d日',$_REQUEST['selectType']=='uncheckin' ? $vo['checkinDate'] : $vo['orderTime']);</php>
                <neq name='dateGroup' value='$orderDate'>
                    <assign name="dateGroup" value="$orderDate" />
                    <tr><td colspan='10'><{$dateGroup}></td></tr>
                </neq>
                <tr>
                    <td>
                        <a href="__KZURL__/book/details-id-<{$vo.id}>"><{$vo.orderNum}></a>
                        <br />
                        <eq name="vo['status']" value='2'>
                            <img src='http://www.dreams-travel.com/pay/order/quxiaodingdan/已取消.gif'>
                        </eq>
                    </td>
                    <td>
                        <!--即时预定判断-->
                        <eq name='vo[orderType]' value='即'>
                            <span style='border:1px solid blue;color:blue;'><{$vo.orderType}></span>
                        <else/>
                            <span style='border:1px solid green;color:green'><{$vo.orderType}></span>
                        </eq>
                        <!--状态颜色区分[黄:等待处理; 绿:已接受; 红:已拒绝; 黑:即时预定,不需要主动处理]-->
                        <a href="__KZURL__/book/details-id-<{$vo.id}>">
                            <eq name='vo[orderType]' value='即'>
                                <span style='color:black'><{$vo.innName}></span>
                            <else/>
                                <switch name="vo['status']" >
                                    <case value="2"><span style='color:red'></case>
                                    <case value="1"><span style='color:green'></case>
                                    <default /><span style='color:orange'>
                                </switch>
                                <{$vo.innName}></span>
                            </eq>
                        </a>
                    </td>
                    <td><{$vo.depositAmount}></td>
                    <td><empty name="vo['depositConfirm']"><span style='color:gray'>未支付</span><else/><span style='color:green'><{$vo.depositType}></span></empty></td>
                    <td><{$vo.balanceAmount}></td>
                    <td><empty name="vo['balanceConfirm']"><span style='color:gray'>未支付</span><else/><span style='color:green'><{$vo.balanceType}></span></empty></td>
                    <td><{$vo.roomcount}></td>
                    <td><{$vo.personCount}></td>
                    <td><eq name="_REQUEST['selectType']" value='uncheckin'><{$vo.checkinDate|date='H:m',###}><else/><{$vo.orderTime|date='H:m',###}></eq></td>
                </tr>
            </volist>
        </table>
        <{$pageBar}>
      </div>
      <!--具体信息左边 end--> 
    </div>
    <!--具体信息 end--> 
  </div>
</div>
<include file="./Index/Tpl/Home/default/public/footer.htm" />